package com.ryan.quartz.temp.decorator;

/**
 * @author Rayn on 2017/10/29.
 * @email liuwei412552703@163.com.
 */
public class App {

    public static void main(String[] args) {

        Beverage beverage = new Espresso();
        System.out.println(beverage.getDescription() + " $ " + beverage.cost());


        beverage = new Drakroast();
        beverage = new Mocha(beverage);
        beverage = new Mocha(beverage);
        beverage = new Whip(beverage);
        System.out.println(beverage.getDescription() + " $ " + beverage.cost());



        Beverage beverage1 = new HouseBlend();
        System.out.println(beverage1.getDescription() + " $ " + beverage1.cost());





    }
}
